package com.nxy.test.netty;

import com.nxy.test.netty.server.ChatServer;
import com.nxy.test.netty.server.HttpServer;
import com.nxy.test.netty.server.SimpleServer;

/**
 * Created by snailnan on 2017/2/23.
 */
public class Service {
	public static void main(String[] args) throws InterruptedException {
		// runServer();
		 runHttpServer();
//		runChatServer();
	}

	public static void runServer() throws InterruptedException {
		new SimpleServer().run(6666);
	}

	public static void runHttpServer() throws InterruptedException {
		new HttpServer().run(6666);
	}

	public static void runChatServer() throws InterruptedException {
		new ChatServer().run(6666);
	}
}
